<!DOCTYPE html>
<html>
<head>
    {include file="public/header" /}
</head>
<body>
<div style="padding-bottom:200px" class="layui-form layuimini-form">

    <input type="hidden" name="id" value="{$res.id}" />
    <div class="layui-form-item">
        <label class="layui-form-label required">昵称</label>
        <div class="layui-input-block">
            <input type="text" disabled  value="{$res.name}"      class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label required">头像</label>
        <div class="layui-input-block" id="headpic_p">
            <!--{$res.headpic}-->
            <img  src="{$res.headpic}" id="headpic">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">电话</label>
        <div class="layui-input-block">
            <input type="text" disabled  value="{$res.phone}"        class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" id="area-picker" >
        <label class="layui-form-label required">所在地区</label>
        <div class="layui-input-inline">
            <select name="province" class="province-selector" data-value="{$res.province}" lay-filter="province-1">
                <option value="">选择省</option>
            </select>

        </div>
        <div class="layui-input-inline">
            <select name="city" class="city-selector" data-value="{$res.city}" lay-filter="city-1">
                <option value="">选择市</option>
            </select>

        </div>
        <div class="layui-input-inline">
            <select name="area" class="county-selector" data-value="{$res.area}" lay-filter="county-1">
                <option value="">选择地区</option>
            </select>

        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label required">详细地址</label>
        <div class="layui-input-block">
            <input type="text"   disabled  value="{$res.address}"          class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label required">消费记录</label>
        <div class="layui-input-block">
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="200">
                    <col width="150">
                    <col width="200">
                    <col width="200">
                    <col width="200">
                </colgroup>
                <thead>
                <tr>
                    <th>日期</th>
                    <th>商品名称</th>
                    <th>商品编号</th>
                    <th>商品数量</th>
                    <th>订单编号</th>
                    <th>订单金额</th>
                </tr>
                </thead>
                <tbody>
                {if condition="count($res.order_arr)<1"}
                <tr>
                    <td>暂无数据</td>
                </tr>
                {else}
                {volist name="$res.order_arr" id="vo" key="k" }
                <tr>
                    <td>{$vo.create_time}</td>
                    <td>{$vo.bizpro_name}</td>
                    <td>{$vo.bizpro_number}</td>
                    <td>{$vo.buy_num}</td>
                    <!--{if condition="$k==1"} {/if}rowspan="{$res.total_num+1}"-->
                    <td >{$vo.order_number}</td>
                    <td >{$vo.total_price}</td>

                </tr>
                {/volist}
                {/if}

                <!--<tr>-->
                <!--<td>2016-11-29</td>-->
                <!--<td>苹果</td>-->
                <!--<td>113456</td>-->
                <!--<td>6</td>-->
                <!--</tr>-->
                <!--<tr>-->
                <!--<td>2016-11-29</td>-->
                <!--<td>苹果</td>-->
                <!--<td>113456</td>-->
                <!--<td>6</td>-->
                <!--</tr>-->
                </tbody>
            </table>


        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" id="aa">状态</label>
        <div class="layui-input-block">
            <input type="radio" name="audit_status" {if condition="$res.status==1"} checked {/if} value="1" title="已注册">
            <input type="radio" name="audit_status" {if condition="$res.status==2"} checked {/if} value="2" title="未注册" >
            <input type="radio" name="audit_status" {if condition="$res.status==3"} checked {/if} value="2" title="已下单" >

        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
    <!--</form>-->
</div>
{include file="public/footer" /}
<script src="/static/admin/order/orderdetail.js?v={$Think.const.TIMESTAMP}" charset="utf-8"></script>

</body>
</html>